﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace VueShopApi.Entities 
{
	[JsonObject(MemberSerialization.OptIn), Table(Name = "sp_category", DisableSyncStructure = true)]
	public partial class SpCategory 
	{
		/// <summary>
		/// 分类唯一ID
		/// </summary>
		[JsonProperty("cat_id"), Column(Name = "cat_id", DbType = "int(32)", IsPrimary = true, IsIdentity = true)]
		public int CatId { get; set; }

		/// <summary>
		/// 是否删除 1为删除
		/// </summary>
		[JsonProperty("cat_deleted"), Column(Name = "cat_deleted", DbType = "int(4)")]
		public int CatDeleted { get; set; } = 0;

		[JsonProperty("cat_icon"), Column(Name = "cat_icon")]
		public string CatIcon { get; set; }

		/// <summary>
		/// 分类层级 0: 顶级 1:二级 2:三级
		/// </summary>
		[JsonProperty("cat_level"), Column(Name = "cat_level", DbType = "int(4)")]
		public int? CatLevel { get; set; }

		/// <summary>
		/// 分类名称
		/// </summary>
		[JsonProperty("cat_name"), Column(Name = "cat_name")]
		public string CatName { get; set; }

		/// <summary>
		/// 分类父ID
		/// </summary>
		[JsonProperty("cat_pid"), Column(Name = "cat_pid", DbType = "int(32)")]
		public int? CatPid { get; set; }

		[JsonProperty("cat_src"), Column(Name = "cat_src", StringLength = -1)]
		public string CatSrc { get; set; }

	}

}
